 // 引入等比适配插件
 const px2rem = require('postcss-px2rem')

 // 配置基本大小
 const postcss = px2rem({
     // 基准大小 baseSize，需要和rem.js中相同
     remUnit: 16
 })

 module.exports = {
     baseUrl: './',
     productionSourceMap: false,
     devServer: {
         //port:8888,
         proxy: {
             '/api': {
                 target: 'http://jsonplaceholder.typicode.com',
                 changeOrigin: true,
                 pathRewrite: {
                     '/api': ''
                 }
             },
             '/testApi': {
                 target: 'http://111.8.20.247:89/api/apph5api',
                 changeOrigin: true,
                 pathRewrite: {
                     '^/testApi': '/testApi'
                 }
             },
             '/ms': {
                 target: 'https://www.easy-mock.com/mock/592501a391470c0ac1fab128',
                 changeOrigin: true
             }
         }
     },
     lintOnSave: true,
     css: {
         loaderOptions: {
             postcss: {
                 plugins: [
                     postcss
                 ]
             }
         }
     }

 }